
$(function () {
    //操作提示缩放动画
    $("#checkZoom").toggle(
        function () {
            $("#explanation").animate({
                color: "#FFF",
                backgroundColor: "#4FD6BE",
                width: "80",
                height: "20",
            }, 300);
            $("#explanationZoom").hide();
        },
        function () {
            $("#explanation").animate({
                color: "#2CBCA3",
                backgroundColor: "#EDFBF8",
                width: "99%",
                height: "20",
            }, 300, function () {
                $(this).css('height', '100%');
            });
            $("#explanationZoom").show();
        }
    );

    //自定义radio样式
    $(".cb-enable").click(function () {
        var parent = $(this).parents('.onoff');
        $('.cb-disable', parent).removeClass('selected');
        $(this).addClass('selected');
        $('.checkbox', parent).attr('checked', true);
    });
    $(".cb-disable").click(function () {
        var parent = $(this).parents('.onoff');
        $('.cb-enable', parent).removeClass('selected');
        $(this).addClass('selected');
        $('.checkbox', parent).attr('checked', false);
    });

});

